package com.java.basis.accessmodifer.p2;

import com.java.basis.accessmodifer.p1.Girl;
import com.java.basis.accessmodifer.p1.Person;

/**
 * @author wangning
 * @create 2021-04-22 14:16
 */
public class Boy extends Person {
//	@Override
//	protected void f() {
//		super.f();
//	}
	public static void main(String[] args) {
		Boy boy = new Boy();
		boy.f();//success
		Girl girl = new Girl();
		//girl.f();//error
	}
}

